function tip(element, message, visible) {
    element.innerHTML = message;
    element.hidden =!visible;
}